package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Role;
import com.itheima.pojo.RoleUser;
import org.apache.ibatis.annotations.Select;

/**
 * @author jshstart
 * @creat 2020-11-23 9:42
 */
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    @Select("select user_id from t_role_user where role_id=#{id}")
    Long[] findUserByRoleId(Long id);
    @Select("select role_id from t_role_menu where role_id=#{id}")
    Long[] findRoleByRoleId(Long id);
}
